@import './variables.less';

// 宽高
.mixin-wh(@width, @height) {
  width: @width;
  height: @height;
}

// 单行省略号
.mixin-single-ellipsis() {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

// 多行省略号
.mixin-multi-ellipsis(@row: 2) {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: @row;
  /* autoprefixer: off */
  -webkit-box-orient: vertical;
}

// 底部安全距离
.safe-bottom() {
  //兼容 IOS<11.2
  padding-bottom: constant(safe-area-inset-bottom);
  //兼容 IOS>11.2
  padding-bottom: env(safe-area-inset-bottom);
}

.iconfont(@fontSize: 32) {
  font-family: "iconfont" !important;
  font-size: @fontSize;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1;
}